﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>AddForm</title>
	<style type="text/css">
		div,table,tr,td{
		margin:0px;
		padding:0px;
		}
		.myTable{
				Width:800px;
				margin:20px auto;
				border-collapse:collapse;
		}
		.myTable td{
			height:30px;
			line-height:30px;
			padding:6px;
		}
	</style>
</head>
<body>
	<form method="post" action="Add">
		<div style="text-align:center">
			<table width="800" class="myTable" border="1">
				<tr>
					<td colspan="2" align="center" style="font-weight:bold;">员工新增</td>
				</tr>
				
				<tr>
					<td width="200" align="right">所属部门：</td>
					<td width="600" align="left">
						<select name="DeptId" id="DeptId">
							<option value="0">--请选择--</option>
							@foreach (var item in ViewBag.listDept)
							{
								<option value="@item.DeptId">@item.DeptName</option>
							}
						</select>
					</td>
				</tr>

				<tr>
					<td width="200" align="right">员工姓名：</td>
					<td width="600" align="left"><input type="text" name="txtRealName" /></td>
				</tr>

				<tr>
					<td width="200" align="right">员工电话：</td>
					<td width="600" align="left"><input type="text" name="txtPhone" /></td>
				</tr>

				<tr>
					<td width="200" align="right">所在城市：</td>
					<td width="600" align="left"><input type="text" name="txtArea" /></td>
				</tr>

				<tr>
					<td width="200" align="right">月薪：</td>
					<td width="600" align="left"><input type="text" name="txtSalary" /></td>
				</tr>

				<tr>
					<td width="200" align="right"></td>
					<td width="600" align="left">
						<input type="submit" value="新增" />
						<a href="Demo01">返回首页</a>						
					</td>
				</tr>

			</table>
		</div>

	</form>
</body>
</html>
